#pragma once
#include "chunkitem.h"

namespace ChunkSystem
{
	class ChunkModel :
		public ChunkItem
	{
	public:
		ChunkModel( ChunkItem* pOwner );
		virtual ~ChunkModel(void);

		virtual bool Load( TiXmlElement* pChunkItemData );
		virtual void Unload( void );

		std::string GetResPath( void ) const;

	private:

		//engine model object;
		std::string m_strResPath;
	};

	class ChunkModelFactory :
		public ChunkItemFactory
	{
	public:
		ChunkModelFactory( void );
		virtual ~ChunkModelFactory( void );

		virtual const String& GetFactoryType( void ) const;

	protected:

		virtual ChunkItem* _CreateImpl( ChunkItem* pOwner, TiXmlElement* pChunkItemData );
	};
}